<template>
    <h3>Child</h3>
    <p>{{ title }}</p>
    <p>{{ title2 }}</p>
    <p>{{ fullTitle }}</p>
    <p>全局注册：{{ globalData }}</p>
</template>
<script>
export default {
    data(){
        return{
            fullTitle : this.title2
        }
    },
    props: {
        title: {
            type: String,
        }
    },
    inject: ["title2", "globalData"]
}
</script>